﻿using BusinessLogicTier.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BusinessLogicTier.DAL.DataContext;

namespace BusinessLogicTier.BLL
{
    public class NguoiDung_BLL
    {
        public bool Insert(tbl_NguoiDung obj)
        {
            return NguoiDung_DAL.Insert(obj);
        }

        public bool Update(tbl_NguoiDung obj)
        {
            return NguoiDung_DAL.Update(obj);
        }

        public bool Delete(tbl_NguoiDung obj)
        {
            return NguoiDung_DAL.Delete(obj);
        }

        public List<tbl_NguoiDung> GetAll()
        {
            return NguoiDung_DAL.GetAll();
        }

        public List<tbl_NguoiDung> LayNguoiDungTheoVaiTroID(long _VaiTroID)
        {
            return NguoiDung_DAL.LayNguoiDungTheoVaiTroID(_VaiTroID);
        }

        public tbl_NguoiDung SelectByID(int IDNguoiDung)
        {
            return NguoiDung_DAL.SelectByID(IDNguoiDung);
        }

        public tbl_NguoiDung SelectByUserName(string TaiKhoan)
        {
            return NguoiDung_DAL.SelectByUserName(TaiKhoan);
        }
    }
}
